import { getUserDetailById } from '@/api/user'

export default {
  data() {
    return {}
  },
  methods: {
    async getInfo(id) {
      try {
        //  根据角色id拿到权限id数组
        const res = await getUserDetailById(id)
        this.roleIds = res.data.roleIds
        this.userInfoForm = res.data
      } catch (err) {
        console.log(err)
      }
    }
  }
}
